update key_spec.rb for new tests