fixed AbstractHistory and Tests