add time control to unittest and app.config