Fixed some bug in contact handler of application service
Unit test for contact handler of application service