Test for rails