Setting up functional tests to handle cookies