fix(mux): Fix exports in index.js and add tests