added test for issue #27
fixes #27
support for 5.6
Merge pull request #30 from danijoo/master

Fixes #27