Test for checking JS errors