Fix scope resolution in AttributeRelation test

This was failing on Travis for ruby 2.1.2 (working for 2.0.0), even
though it is passing locally. Hmm…