Added tests for throws() and notThrows() methods