Fix minor warnings in test.c

Didn't show up local, but travis complained about it, so here's the fix!