add convenience method to set output file name
adapt tests to work in Windows environment