Try to fix JS test timing problem