_getId should return an int if the id is valid. Closes #103
0.5.5