There should be a way for bancheck to ban package imports selectively whether the importing package is in a test file or not.