Add test case for behavior error