test() is a member of ClassA , so it has access to private members (and the tuner) A. It does not have access to private members or setters of ClassB , therefore, an error on instanceB, but not instanceA.
For more information on the availability of private members, I recommend that you see this answer on the relevant question.
source share