Adding tests for Medea#write