Fix attribute lookup test