BAM-119 Add tests to generate call traces from list of activity units, and fixed empty stack exception.