Starting to refactor unit tests.
finished moving function tests into new search module spec