Fixed up the tests to work on CentOS 4. Not sure if this is portable.