Add test to check if the returned objective is of opposite sign.
Add test to check if the returned objective is of opposite sign.