Improved preTest method to avoid prior test artifacts.