Fixing tests for the export function
The three tests for the export function work, but break after each branch switch because they require a special file to work. Its annoying and goes against the principle of testing. It's time to find a solution to this.