without id property test fixed and function working