Creating memory leak tests