Some more xml configs
Added unit tests for ResourceFactory