add an test for init