updated testing to make cuda optional