Fix the preview layer test

About time I got around to doing this. We don't know the actual limits
for this property, but 0-255 probably gives enough scope for everyone to
play with.