script to produce test cases for adapter removal