Changed ContentAssistant.close() implementation + test (#641)