move decoder test logic to archive