tools for automatically setting flags and running the test