mocking request cookies and appstore for tests