fixed heap memory test case