Docstring formatting to style guide.
Adapt test cases to fixed behaviour.