Add code to inspect system while running test