add test cases for activerecord and mongoid