Added input of calling history of client
fix
added test. Find bug. Pre-final version.