closes #1393
adding more nosetests and closing #1301
Merge pull request #1406 from OCHA-DAP/search_controller

closes #1393