Exclude unnecessary items from tests and add test for random token gen

I'm excluding mediatypes.py here because it is just a single assignment and there is no benefit from including it in tests as we have no tests for it right now and I don't see us adding one unless we get some actual content in there.