testing and learning on Rails