Adds source test.

This uses an unfortunate global variable (traktURL) and tests which are
not in a seperate _test package. I've considered using the new
go:generate but ran into problem there.
I believe this is a reasonable trade-off between correctness and
complexity.