Structure formation in alternatives to $\Lambda$CDM