Fix warnings in test.c