Avoid an order-of-operations issue when testing