tests: Test case for lseek()

This adds a test case for lseek() to check for proper error code on
negative offsets.

Reviewed-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>