Add rule_test.go
Don't explicitly pass tagname and defstring.
Centralize FirstLineOnly call