fix history tests