[liujing] add test and code for owin environment
[liujing] refactor fact file