add test-inst target to Makefile
Added tags option to Seach to control if pkgtags is searched
Fix some broken unit test cases