Change tests to use assert.  Improve TestPrimeFactors.