Implement first JUnit test - fixes #43