Change patch format also in tests