add unit test case for HttpParser