Revert "Use correct order in assertions"

This reverts commit ab7b7cc817124a477822ee07f1212bcaf5f01864.