unit tests for HttpParser