a helper function for unit test