main: return http.Handler on buildMux
test: test the actual multiplexer, instead of handlers