add tests for parse-rules()