added JUnit Tests