[PATCH 09/21] test: Update command test to use unit-test functions