Clean the testing script.

Cleaning includes:
- Make it easier to add new options to test.
- Display commands executed so tests can be manually replayed.