Test code for Ruby on rails. CS 4990