Added tests for toString and length