Added utility method, testcase