Try to write these definitions using grades and standalone global functions, rather than supplying all the configuration as a literal argument inside the test function. This will help to make your test definitions more reusable