test code with Rails4