added error testing sketch