Removed 2nd definition of createApplication which made api test fail