tidy up batch test to use new functions, truncate table & generate same example each time