Moved the zlevel testing code into a conditional test.