Added unit/acceptance tests for likes counter cache.
update index page to deal with nil learning condition.