added throws tests