Add test and fix #1108 (fix identation)