Fix @JsonIgnore and add unittest