modify output format & add test.sh
remove 'testdata/answer.txt'