added some JUnit tests to test code quality