added test for #361, indent problem in script

also see #608, a contaminated pull request that we are replacing.

@mr-c  please use @myname otherwise, I don't get notified. Not sure why though :)