add framecat util to show one frame per line and fix test code