add test for init
build with msvc