Unit generator tests