Fix:
1. unit test, add line number of failed cases
2. ajust code
Add simple string, ajust style.
Add malloc wrapper.