creating test with stub for authenticate request