object alloc and init test