Maximal Length Projections in Group Algebras with Applications to Linear Rank Tests of Uniformity