fixed tests so the exception line is checked