munin: add test and fix a bug