add tests for favorite_by method.