Fixed PHP 5.3 compatibility in API Key unit test