Added a throws test