JUnit test cases for pull request #8 from jncorpron