Sample codes testing