fix api#keys test