A test for rails