[DB2] tests for time quoting

Tests to avoid potential regressions with time in DB2. Just for the gossip :) ! #429