Tests require fewer assumptions about initial conditions.

Used 'glib2' for searchPackage() test and '/usr/bin/ls' for
searchFiles() test since they exist and are installed.

Modified searchPackage() "installed" vs. "~installed" tests
basing them on whether tuxguitar is installed or not.

Rearranged and general cleanup.