fix fragment regular expression test

fix #372