Moved data simulation above integration test in test chapter