added test
fixed bug in json post call