Added some more tests.
search_email func added.