prepare mock_app for testing