Testing utilities and helper classes