Fix history test