Test using a structure that returns a consistent value on Rails 4.0 & 4.1