accountlinker unittest fixes

Made the tests pass, they were failing on my vagrant box and I'm
pretty sure they would fail on the staging server as well.

Made the tests use factory functions instead of fixtures.

Added function in test_factories to create a ThirdPartyAccount