TDD demonstration using prime number check in Java