more tests + nextPrime fix