A framework for testing networks to detect filtering