Fix for issue #1449: duplicate prefix header contents

This adds an integration test that is in pull request https://github.com/CocoaPods/cocoapods-integration-specs/pull/8
as well as two unit tests which are passing.

Fixes #1449