Run tests headlessly

Closes #15