Add test for init, close #3