add tests
Merge pull request #2 from escidoc-ng/authorizeSearch

add authorization