Fix remove with only one item and add error handling in append/remove
Add unit tests for failing append/remove calls