added functionality to sleep of dup_mock, now can sleep for avariable number of seconds