Adding test for throws with unknown error type