add spec for max_elapsed_time