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

@lichun Can you take a look at this and let me know if any changes need to be made. I'll be adding the module apps and their tests over the next week. Thanks!