fix regular expression, add MiniTest