Refactor/test getIntValue