Increase the limit of post request

Default is 100kb but coverage reports might be bigger than that, thus failing to be reported.

Reorganize some code to be cleaner.