Updates test for act.js to ensure proper error throwing