Don't defer in tests

Deferring is a useful mechanism in most of Go, but in tests, there's a better way.