Fixed loophole in library(pkg) search.

Deactivated a test until I can refactor some code.