Feature/fix unit tests

Fixed two cases where tests were relying on the pcntl extension