Enabling the functional test to search email and destroy