Cleaned up tests to check only for one error cause at a time.
Added tests for update().
Added missing semicolon.