updated unit tests to work with new resource system