Create superclass for other visual mode tests.

TextObjects can best be tested in visual mode, but the current visual
mode test functions can't be easily reused in plugin projects. Introduce
a parent class with just the test harness functions.