support JSONField.ordinal & fixed test error