Test for JIRA issue HHH-8775

I have added a Junit test for JIRA bug issue HHH-8775