Refactor: Flushing and seeding a test sample