Add tests for SECURITY DEFINER in RLS

See 52689207.4060605@2ndquadrant.com