Fix #initial_results_handler and #statistics_update_handler and add specs