@JsonProperty unit test and bugfix

Hi,

I found a bug and fixed it in this branch. I also added the unit tests to demonstrate the capabilities just as I promised.

Thanks for merging the last time!