Fixed unit tests.
Add building standalone jar.