add some methods to test, and fix , problem in toString