removed old flash message codes
updated json tests for update and delete