added test for register_model