Fix failing js unit test