JUnit tests added.