Merge "Add test for gamma correction."