Fixed deserialization bugs with PI endpoints. Added static XML for PI. Added valid api key for PI unit tests. fixed #7