Changed json content-type to application/json
added test and body parser modification