Ported test cases from facebook/facebook-php-sdk