Testing utilities