add dialect support checking to tests

this allows us to test for dialect features in tests, see
test/transaction.test.js for an example of checking for row locking
support before running a test
Merge pull request #2597 from mbroadst/test-dialect-support

add dialect support checking to tests