Adding unit tests for host groups with inventory dir

Hi Serge

Here are some unit tests for Inventory group methods in presence of an inventory dir.  Could be included with ansible/ansible#6379 if you want.  Otherwise I will make a separate pull request for tests only.

Cheers
Taylor