adapted unit tests and added missing tests due to resource-server and auth-server separation