Added regression test for attribute definition on ruby 1.8.7