tests: add basic test for ftruncate, lseek and stat family syscalls

* tests/stat: New test.
* tests/Makefile.am (TESTS): Add stat.
2 files changed