A method for generating infinite positive self-adjoint test matrices and Riesz bases