The finer points of linearity testing