Add testcase and fix for indentation bug