refactor buildtest whitelist blacklist

I think this is more readable and it's faster.