Add wfAssembleUrl and unit tests. This is the next step towards fixing