Fixed a unittest
Fixed an invalid comparation