t4018: convert custom pattern test to the new infrastructure