Benchmarks

Hum, maybe we should have a more informational way of saying "That generation is invalid", other than just returning None?

Another idea is to split all tests in this method into many small test methods. Like `test_handle_send_doc_request_wrong_generation`, `test_handle_send_doc_request_wrong_trans_id` and so on.