fix bug:as and ip bootstrap problem - fix unit test problem