Added a test for regitration failure
Resource files clean up