Finish matrixService unit tests. Add missing encodeURIComponent to path args.