Add test case for utils.go and update init function