Writen a small test for genreating keys.