add deep resources test cases
revise resource loading process