Add simple JUnit tests

Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>