unit tests for prime number service