added error checking test