Test "k" implementation