This is a long test. I think you can shorten it a bit with some helper functions:

```go
func attrsIndex([]Attrs, key, value string) int {
	for i, a := range attrs {
		if a[key] == value {
			return i
		}
	}
	return -1
}

func attrsEqual(a, b []Attrs, key) bool {
	if len(a) != len(b) {
		return false
	}
	for i := range a {
		if a[i][key] != b[i][key] {
			return false
		}
	}
	return true
}

if i := attrsIndex(attrs, "playlist", "Test Playlist"); i < 0 {
	...
}

if ok := attrsEqual(attrs, playlist, "file"); !ok {
	...
}
```