Refactor tests
Correctly report the exit status of the command

Fixes #57
Refactor assert_speedup