some functions for unittesting