Implement test

Adds Posix-conformant, non-XSI-conformant test util.

See http://pubs.opengroup.org/onlinepubs/9699919799/
Can you add your email here as well?