test with doinit in default constructor