Refactor test infrastructure for metadata stress

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Factor out common metadata prologues

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Merge pull request #28 from eepp/refactor-stress-infra

Refactor test infrastructure for metadata stress tests