some fixes for test_resources
and some fixmes!
catch more errors in syncRegistry