Finished tests for db.clearTable method