add repeat pattern parsing test case