fix missing check for simulation run and add test