Add search tests and cleanup makefile
Remove unneeded function from search view