seperated out all system calls for isolation
improved tests around device list