Check json contents in register_resource method
Add new tests to register_resource test case