Fix test data creation function Add a test for test data creation so we know when we break it Add test-data command to make file for easy usage