insert assert function to test case