Added test unit functions.