QA: update toc test for RSpec3

* also removed unnecessary sleep()

Change-Id: I84e80001098b0173807e542ab0348f01ddb2d65c