Improve the test suite.

- Make a clearer setup helper.
- Support Rake's "--trace" and "--verbose" options.
- Fix bugs in the setup helper.
- Remove the unused common_setup helper.
- Restructure the functional tests.
Add test for accept completions.