Add Source class
Add SourceTestHelper

The SourceStub class and checkSourceString function are moved from
SourceTest.
Add checkSourceLineBegin and checkSourceLineEnd

This commit is a refactoring that introduces test helper functions.
WIP: Add LineAppendedSource class