[nim] Instead of using waitFor through setTimeOut, using waitUntil using waitsFor. Better testing practice