Add debugging and test for blacklist