Integration test fixes

Tested integration tests in Oracle, Mysql, PostgresSql, H2 and Hsqldb

All pass except testRerunDiffChangeLog for H2.