add tests for dev.init