Do raise test per plpgsql on PostgreSQL-9.2+ only.
Fix test for time input type cast.