Corrected creation of dummies
Corrected indentation for writeoutput test