remove needless else block
update tests for failed record lookups, fix bug in update