Test functions.