Adding unit tests.
Integrating tests with Maven/Gradle build.