test util functions