factor/simplification problem



I have this expression
test:(L^3*(cos(beta)*sinh(beta)*L*c*s-cosh(beta)*sin(beta)*L*c*s+cos(beta)*sinh(beta)*L*k-cosh(beta)*sin(beta)*L*k-2*beta*sin(beta)*sinh(beta)*EI))/(beta^3*EI*(cos(beta)*cosh(beta)*L*c*s+L*c*s+cos(beta)*cosh(beta)*L*k+L*k+beta*cos(beta)*sinh(beta)*EI-beta*cosh(beta)*sin(beta)*EI))

and it has terms in the denominator like
cos(beta)*cosh(beta)*L*c*s+cos(beta)*cosh(beta)*L*k

I don't seem to be able to make Maxima factor/simplify this as
cos(beta)*cosh(beta)*L*(c*s+k)

which I would prefer.  My knowledge of Maxima simplification is not
all that great, but poking around in the manual and searching the help
hasn't lead me to an answer I know how to use.

Can someone please help me with this?

Thanks,
Ryan