global functions only available in tests

they're not useful anywhere else anyway