fixed bug in gravatar icon implementation
added first batch of tests
merge from natesh to db repo update