Use id instead of instance in spec