Testing $C_k$-freeness in bounded-arboricity graphs