fix indentation
[BUG #7244] fix api doc
[BUG #7244] add tests