Test invalid inplace operation