sepated logic to hit invalid source,resource id during test case.
update: source_test.go moved test data creating to a common logic.