Expanded the test suite.
Added test for next_lower_prime.
Fixed indentation.
Improved error messages.
Added tests for transform.