refactor buildtest whitelist blacklist