Raise error if ID doesn't exist
Tests