Fixed the parseQueryString function by changing the duplicate key handling from 'last value wins' to 'overwrite always' (removed the if check). The test now passes.