Add test case with resolve()