Add autoinit support and already init test

1.1 -> 1.2