added utils for creating mock data for JUnit tests

concerns #587