remove empty string from custom phrases array, test improvements