Added tests and functions to do a singular email search.