Fixed signed-unsigned comparison errors in tests