added important check to testcase