Convert class method tests to use User factory.