Unit test of blacklist handler of application service

and fixed some bugs