added delete and update test

move process of record_not_found case in ApplicationController