cuda code cleanup

typo fix

deleted main from test