Missing tests for `setBasicAuth` method

Fixes #401.
Merge pull request #402 from aik099/test-for-setBasicAuth-feat

Missing tests for `setBasicAuth` method