Added trib app and functional tests. The functional tests passed when I ran them.
Merge pull request #1218 from zhouyaoji/add_trib_app

[example/tests] Added trib app and functional tests. The functional tests passed as well.
Fixed typo