First repository tests; fix session; add credentials to /users test