Include time.h header for time().

Prevents compiler warning:
```
src/tests.c: In function ‘main’:
src/tests.c:1139: warning: implicit declaration of function ‘time’
src/tests.c:1139: warning: nested extern declaration of ‘time’
```