[test] add tests for pretag parser