tet app factory class added
Merged changes by Hieu

Merge branch 'master' of https://github.com/ztane/tet