+ added have function
+ added test case for init