favorites test code added