Updated the unittest example to reflect latest changes.