refactor speedup test to be simpler