fix signature of Assert.throws validation function