move mocking code in kmer file

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>