Made modifications based on pull request feedback:

* Using Array.isArray() to determine if client.redirectUri is an array
* Modified names of some tests for consistency