added a test ensuring that export works from buffers which aren't visiting files