unit test for blacklist