tested to resolve issue in unit test where parent with id 0 was not decrementing