dynamically detect interfaces in unittest