Test for rails 3