Added test on throwing