white/black ip list tests and implementation