added tests for pr #9036