Fix set comparison which caused test failures. Introduced in the management command tests in ad267500bbb805caeb2b794e8b18e618ad6fc566