unit: Add create and destroy test case