Small refactor of test_bcolz.py