added testing dependencies in composer.json and favoriting feature