Factor out bot setup in last.fm tests

Does what it says.