Added unit-cube-like test for branch and bound (#3922)