Add unit tests for modeling.utils