Added some tests for resolving objects with tostring and objects without tostring methods