Make sure to run go generate anytime you change one of the structures in the code.
go generate
To run a mongodb on localhost (for ranking_test.go), try
ranking_test.go
docker run -d -p27017:27017 mongo:3.0