Rewrite unit-test infra-structure.

Now unit-test cases can be specified by plain text files.
As of this commit, there are two files for unit-tests:
 o. test-token.txt : to make sure scaner does a right job.
 o. test-diagnoistic.txt: to make sure the diagnostic info is what we expect.