fixed bug with internal get/set/delete, added tests