Some cleanup and standalone test function for cg_kron_rls.