fix echoStr bug
fix test bug and add debug info