added rails test