Example 2: thrown(), @FailsWith and notThrown()
Added and refactored tests