Test cases for linear and histogram