Extract time to complete stats

Add characterization tests. Add minimal test helper to speed up tests
that don't need all of rails.