Remove unused modules in flat test.