Fixed RequestedAttribute with FriendlyName in Metadata autogenerated for SP

With this new version of simplesamlphp the FriendlyName in requested attributes for the SP was not working correctly anymore.
Fixed it and developed some small PHPunit testing (given I've seen you've been adding them).