Fixed selenium tests
Fixed history saving again