Added common JUnit tests