improve SourceTest
use StringBuilder where possible
made RegEx faster
Merge pull request #935 from Catrobat/improvedSourceTests

improve SourceTests