Add tests for functions in utils modules