Move datum() test helper to test_helpers.py
Add pre-flattened data fixture
Implementing data flattening functionality