Added throws tests
Merge pull request #2 from z3roshot/throwsTests

Added throws tests