Test util functions