testing for end_experiment