bugfix in hashtable removal; many more tests for hashtable