improved testcase