Added test for CSWExtractor.

Factored out a super class for all tests that need a server