fix tests on rails 3.2.13