add test util functions