added SlidingTimeout tests. Added IClock abstraction to allow for testing of clock related activity.