fixed test for init