Use a TEST macro to keep the test files simple.
Use _BSD_SOURCE to remove warnings about implicit usleep use in Sophia.

NDEBUG was placed in the wrong rules.