Fix a bug in service
Unit test for account handler of application service