break up the test suite into components, switch to rspec-mocks.

ref #2.