added error test