Juwang - Handle exception in http server test

Fix #865.