[WFLY-490] / [WFLY-2089] Add test for WFLY-2089 scenario