Fix can not process format
Remove duplicate format
Add test case
Support travis-ci for unit tests