Add tests for user entity