added return type for remove method, fixed arrayCache test error