I can't figure out how you'd write test cases for this. Would it be possible to provide a snippet of what that looks like?