Move test helpers out to t_test.go
Assert URL was called n times