move TestParserCompletion and use common completion cases