Implement test

Adds Posix-conformant, non-XSI-conformant test util.

See http://pubs.opengroup.org/onlinepubs/9699919799/
There's a safe `lstat` in the standard library.