Added JUnit tests to the project.