Adjusted more exception throwing for easier phpunit code coverage
More test coverage and minor tweaks to the ldap library