New tests for Repository and User factories