Added factory and unit test for new location model.