testing types of errors