fix require statement to allow application to be loaded during specs