Add test for HAS_MEMBERS association to BIT #1858 (related to #2166)