Add tests for data

- Clean up data.py