test with/out error