Fix for failing attachment test