tests: ensure dag preserved in pickle round-trip

Also, use tests_require to get travis to run with coverage.