Adds register_instance with mocking sample