Refactor tests. generate javadoc for entities. todo: think of generics
in interfaces