Fix bug in delete collection request query parameters.
Add more unit tests for the request builder.