add struct guard test