fix getting server key for phpunit tests