passing all tests for activerecord