Fix trace level testing