Need to be able to use writefln in testing code