Added throws tests