Move test sub definition to the bottom