Fixed the uptime test-case that was failing in jenkins due to missing stubbing of DateTime.