Adding unistd.h
Fixing tests