Fixed tests with cookies