I realise this is a test class, but might still be prudent to use const string here instead of "text/plain" throughout