add start_end pattern test