Kasan tests: make tests safer by replacing most writes with reads