Optimized input error tests