Fix within times in keys test