Testing for rails app