Add test to make sure an error is triggered when ID is missing