adding test for java8 overriden toString method