passed all tests in test.c