set the right context for postgres tests