Fixed unit tests. Return type of Math.signum is important