fixed bad get
fixed various tests
improve key test