unit-test: Refactor testing into functions

This will make it easier to modify individual behavior in future commits
withouth dealing with all of the previous levels of nesting.

Change-Id: I7c46836a0e34e1db8780005e5af4aa61143c7dde
Signed-off-by: William A. Kennington III <wak@google.com>
1 file changed