better test script
improved support for indentation