fix(test): fixes setTimeout tests in FF18

fixes #1817
Merge pull request #1820 from vladikoff/issue-1817

fix(test): fixes setTimeout tests in FF18