Extract test unit and rspec matchers into separate modules