addLibraryPath() is a no-op if the path being added is already present, which is the case for PLUGIN_DIR here (it is set to the test's own directory). The docs for addLibraryPath() say this directory is last in the default list.