BAMPFA-166: Change a validation error message.
BAMPFA-166: Add tests for object number calculation.