Testing exceptions
Added asserts