Improved test in case the code executes too fast