Implement test

Adds Posix-conformant, non-XSI-conformant test util.

See http://pubs.opengroup.org/onlinepubs/9699919799/
It's almost always better to use safe code than unsafe code.  Also, if you're going to continue using unsafe code, you should probably make `path` a `CStr` rather than a `Vec`.