[PATCH 6/6] reg/tests: Modify add_key() to support key creation in registry views