Added tests for buildQuery patch which espaces slashes in paths.