Protecting test cases from memory scribbling