added tests for 404 handling on put and get
use json instead of send