fixed the test for printLevel