Added threshold value to rendering unit tests