Test needs to mimic function.