add some helper functions for tests