add tests for bug #528,526
Merge pull request #547 from a-chumagin/master

add tests for bug #528,526