Adding tests for catching errors in getting and clearing