fixed not passing tests (autocompleteEditor) + small improvements. refs #HOT-42