reordered test cases to set delete flag before the user is actually deleted from mongo. reordered (and kind of refactored?) the setDeleteFlag function to be cleaner - could probably use some additional refactoring though.