adopted test_init for the new changes