Swapped arounf the mod 5 and mod 3 tests.