Web utils: POST, unit tests and refactoring