Fixed testcase and removed sysinfo calls that don't work on linux