extensive memory leak testing