add test cases for activerecord and mongoid
modify travis configuration