TST/BUG: fix bs4 tests that were getting erroneously run when lxml is installed but not bs4