Test-cases for String class and hashcode, equals method of Object class