update APIObject._divt attribute as well
add tests for APIObject class