Higher-level interface to test running.
Bug fixes.