refactored spring tests into common base class