Add tests

This is tested now, so you don't need `# pragma: no cover`.