use json string instead of object in test