Added additional test for the case "Custom object with a string constructor"