Add tests for issue 1010

I think, this issue was fixed since #2405