Fixing lazyqueue JS unit test