function declare test case