fix memory test in perl 5.6