Minor fixes to how packages are loaded in tests

Convention is to use `library()` to load packages and to quote package names. These commits in this PR do just that.