assertStateEquals works with null field values