Fix mock for creation by id