Added spelling query test.
Removed unused function.
More special case tests.