Fix tests autocomplete of docstrings according to the previous commint

(also fix trailing whitespaces after """\n