Fixed keyfile test