more test and docs about json references