KeysControllerTest translated into RSpec.