fixed some bugs with linearity test