fix #102: re-hook up existing tests

Also fixed a couple issues found in the process, mainly because the unit
tests for plugins missed some things, so switching to functional tests
where appropriate.