Added base classes and rspec tests for cohort