Implement some sandbox unit tests

Compiler error: ignoring return value of ‘ssize_t read(int, void*, size_t)’