saml fixs
Add construct to class
Fix exists function
Add test