Add assert.doesNotThrowError method