Various fixes

* removed unnecessary logs
* checkAuth is now a separate module
* caching errors in some tests