Utilities for testing and working with virtual terminals