added tests as prepared by oliver
Merge pull request #135 from ikorb/patch1

added tests as prepared by oliver
Merge remote-tracking branch 'upstream/master'
fix cast to char, patch by Piotr Fusik