adding memory checks to automatic test case