Support WTW/BTB display in test patterns

This fixes test patterns to properly display correct white level and black level, including WTW and BTB when possible.