added some diagnostic into Tonemap test
fixed failure in Tonemap test