Added failing test for complex filter with N:M 'through' association. Addresses issue #2150