Adapts tests to PostgreSQL (the default order and pk behaviours are different).