Implement before-each and after-each

- Will be executed in the same context as test case function (great to
bootstrap test when the code uses xdmp:set)