Fixed Agent.parseCallsFromXML method and added tests based on Broadsoft documentation