fix mode ?47 - added test
Merge pull request #38 from jedi4ever/master

fix mode ?47 + added test