[misc] test SQLWarnings and a bunch of other stuff