Well, there is one prime number test which NEVER fails, and that is that (n-1)!+1 mod n is zero for all primes, and non-zero for all non-primes. ;-)