[Refactoring] merge test cases to reduce files
fix Issue 12777 - const/immutable member function violating its const-ness - confusing error message
Improve "cannot modify ..." messages
Merge pull request #3637 from 9rnsr/fix12777

Issue 12777 - const/immutable member function violating its const-ness - confusing error message