Added tests for and fixed bug when xml type declaration is present in the SAML response