Inv errors

added test for invalid errors