Single unit test to cover these two functions.