New helper functions for tests