Add dimension test for #trim!