Added jUnit tests
Merge commit '1cf4709bb00f532bead2e1485b28f610a85b94ae'