added simple search spec and factories