[DBAL-497][DBAL-498] Add test.