Hide and store warnings while running test scripts
