adds test cases for inc_and_update
fixed NoneType bug