Added failing test and a fix

Extra empty line detected at body end.