improved test case