Added more test cases to utils functions.