Fix initialization tests
rewrite most of tets