Add explicit tests for accessing data members of const objects