Added tests for registering resources