Refactoring test/

Pull test cases to `common-testCases.js` and `common-testCases-error.js`.
Framework tests then includes these files to reduces duplication and make tests more consistent between the frameworks.

This is a prelim step in re-factoring, some point we may wish to achieve:
* test file listing (`showDir()`)
* test options independently (options specific test cases?)
* ...