added test for resource sorting - removed unused files