wrote spy for search()
submit() in SearchCtrl takes a promise and calls it once done
search() uses $q promises
SearchCtrl added to search template