added functionality to create new object in appFactory class with tests