Testing writing a hash table in C