added favoriting capabilities and tests