Add some tests for basic libc functions.