Adding exception tests