Minor unit test fix. The mock API implementation for hasChildren is wrong.