Fixed tests

All tests are fixed.

NOTICE: I upgraded the activerecord and activesupport to 3.2.12.