test the railscasts way