Create objects in public schema. Make spacing/capitalization consistent. Remove transaction block use for object creation. Remove unneeded function GRANTs.
datatype in test, to try to avoid any dependency on local time zone.
From Oleg Bartunov and Teodor Sigaev.