Basic Utils and Test Cases