Update test.
api key is saved as a cookie now. This code's ugly.