Add unit tests for HttpBasicAuth plugin