[wip] test: Fix tests for plugin and library.