update history
tests; refactor isSelected checks
tests; fixed for 3.7-pre