Test hosts defined in multiple groups in different files

The test now works identical to calling ansible directly as mentioned in #5749