Fix test-helper

- Remove needless code
- Don't enable c++-mode because it causes test error for Emacs 24.3 or lower