added test for register updated key