extend the unittests for http tests
fix the errors the unittest reports

- use the redirection, when trying to delete a folder without trailing /
- use the ConflictException more to generate 409s
fix indentation and line lengths