selftests: split tests in journal plugin functional test.

Split test in two, for the functional journal plugin tests.
Using a test fixture to setup (to execute and catch JSON and journal)
and tear down (to close the database) things.