semi working unit test for init