improve toString test