Fixed signed comparison errors in unit tests.