Add tests for functions.

This has the side-effect of using some plugins, which
increases the coverage A LOT.