Added a way to set the logger level from the test runner
Use popattr where appropriate