tweaks to json stuff
refactor and change of test to send actual status 204