fix unit test to just check sign of result