Add coverage

@tsangsimon please have a look. Command to run is in travis yaml, i.e. py.test --cov systemofrecord tests/ --cov-report=term --cov-report=html