added testcase for isForm algo method