[test] include time.h for bsd build
Merge pull request #7 from pierriko/fix-bsd-time

[test] include time.h for bsd build