Improved testcase snippet