Restructure helper utility testing to handle failure