remove unnecessary special test package
track whether flags have been set by the user
make it possible to disable duplicate flags