refactored poi.utils.js unit tests