Add passing tests for Resources, remove debug prints