Fixed searchPackage() and getPackages() tests.

Used new "arch" field to insure that the package that is checked
for in the 'installed' or 'available' lists takes the architecture
information into account.