add spec for ReleaseNotes parser

And a little refactoring.