Fix target filtering test for targets == sources