Add some tests

I've checked it with 2.1.1 now.
Fix a bug handling all empty lines

Fixes #1.
Version bump to 1.0.1