added test cases to reflect utils test and fixed warning