Move a pattern below its tests