test init function in object extend function