cpp class private members unit test