testing the key matching register.