test: fix race condition in browserify