Add some tests to the sender for overwriting the api key.