Replaced entity_controller with pre_gen_simulated.
Return what we're supposed to, and fixed simulate.
Added unit tests for pre_sim_worker and pre_sim_worker_sup.