fix signed / unsigned comparison warnings in tests