Significant bug fixes for TestPuller and attachments.