Fix descriptor bugs of test plugins