[geometry] Added testcase for mailed supposed error. Moved pie-test to header conform other testcases