Fix R CMD check warnings with filter.test method