handle 0 as returned value
persist state after test completes