Patch os module and make the test pass

os module is not relevant for this test, so it should be patched.
Added complete log listing to dashboard
Small fix to make the code correct