Use require.WithinDuration to fix flaky test
Currently, there's a failed test, when a test is executed on the border line of a second. This MR adds a delta within which the statement is verified. Can be verified by:
go test ./client -run=TestClients/Https_client/JWT_authentication_headers_for_GET -count=10000