Added test for attribute from relationship