Wrote specs for ActiveRecord implementation