added JUnit Test

References #1