Initial unit testing stuff

Should cover https://github.com/gittip/www.gittip.com/issues/1480