Merge pull request #385 from pedroigor/master

[PLINK-401] - Adding test method.
[PLINK-571] - Identity bean should allow custom scope configuration.
Improving logging in case of errors.