TST/CLN: use new assertRaises
TST: pytables needs an encoding argument