Use assert_equal in test_schema_dump_has_no_duplicate_values and test_schema_dump_has_no_duplicate_indexes. Wrap associated postgresql-specific schema code to ensure that failure during setup does not change the database connection's schema_search_path