Fix the case where add == NULL.
Add more tests for probable prime generation.