Fixed fixed bad negitative if statement, fixed tests.

  * tests pass.