fix issue #12
Merge pull request #19 from satooshi/0.6-trim-source-file

fix issue #12 end of file should not be included in code coverage