CLN: give everything that needs it a closing context manager
CLN: clean up the testing suite
CLN: clean up all the test suites for data.py