port of Test::Builder to scala