Fixes list comparison tests across all python versions