Add tests for authorizeTransfer