Add new tests to register_resource test case