replace useless tests

* remove type checking tests for number that were passing with NaN
* add appropriate value comparison tests to maintain coverage
* fix issues pointed by JSHint