fix show('resource') and add test case