Modified token auth tests to use mocks and request context