TST/BUG: fixed references to class attributes (part2)