Tests

The actual test coverage is minimal, but I wanted to get the autotools stuff in, and other PRs also add tests
Common is pulled from the render_stack. Does it need more stripping out of it?