fix failing test related to moving by_id to kwargs