Basic implementation and tests for ActiveRecord and Mongoid