Added null checks and test cases to AutoCompletionChoice