Added dependency injection support and finished when_create_hashtable test