adding a `test_handler` test helper method

Just some syntactical suger - no real behavior change.