added refresh directive and came up with a mechanism for speeding up the tests
added timer-based test for refresh