More test coverage in webpp.hpp and some fixes