Build tests

**Resolves #515.**

Can anyone think of anything else we should put in this?