Add tests for baseModel
Fix empty getById(promise is rejected instead of resolved with null)