Refactored and built tests for the data init process