fixed key chain encryption tests