Fix for first run of slowlog test

Have added a fix for first run of the slowlog tests.

Please refer to the commit 79ea203  for the fix.