changed test methods to match junit headers, updated file open functions