Added Junit tests.