Added Jacoco plugin and a test.