updated get method, removed clear, set method, fixed test error