query transformer unittest for Statement and PreparedStatement