Added tests.
Fixed small bug with entity initialization.
Fixed pom.xml.