Add some test tools to ease scenario writing

review11331002