testing application_factory