[ModelManager] Allow creation of entity with pre filled data, add exceptions, clean up some code, tests