fix show output and add test