add test cases for external resource