Improved test speed for not creating attachment without file